package com.xs.designpattern;

import lombok.EqualsAndHashCode;
import lombok.RequiredArgsConstructor;

/**
 * 兽人军阀
 * @author xs
 */
@EqualsAndHashCode(callSuper = false)
@RequiredArgsConstructor
public class OrcWarlord extends Warlord{
    private final String weapon;

    public OrcWarlord(OrcWarlord orcWarlord) {
        super(orcWarlord);
        this.weapon = orcWarlord.weapon;
    }

    @Override
    public String toString() {
        return "兽人军阀攻击时使用 " + weapon;
    }
}
